import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const state = {
	eqid: null,
	eqhead: '地震信息'
}

const mutations = {
	seteqid: function (state, eqid) {
		state.eqid = eqid;
	},
	seteqhead: function (state, eqhead) {
		state.eqhead = eqhead;
	}
}

const getters = {
	geteqid: function (state) {
		return state.eqid;
	},
	geteqhead: function (state) {
		return state.eqhead;
	}
}

const eqinfo = {
	state, mutations, getters
}



export default new Vuex.Store(eqinfo)